import { createRouter, createWebHashHistory } from 'vue-router'
import {userManagement} from "@/router/userManagement";
import {roleManagement} from "@/router/roleManagement";
import organizationalStructure from './organizationalStructure'
import menuManagement from "@/router/menuManagement";

const routes = [
  {
    path: '/',
    name: 'home',
    component:  () => import('@/layout/index.vue')
  },
  ...userManagement,
  ...roleManagement,
  ...organizationalStructure,
  ...menuManagement
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
